package kr.saeildamil.androidstudy.ch11;

import kr.saeildamil.androidstudy.R;
import android.app.Activity;
import android.content.res.Resources;
import android.os.Bundle;
import android.util.Log;
import android.util.TypedValue;
import android.widget.TextView;

public class ReadResource extends Activity {
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		Log.d(Ch11Main.TAG, "ReadREsource - onCreate()");
		setContentView(R.layout.ch11_readresource);

		TextView tv = (TextView) findViewById(R.id.ch11_readresource_tv);

		Resources res = getResources();
		String str = res.getString(R.string.textstr);
		tv.setText(str);

		int textColor = res.getColor(R.color.textcolor);
		tv.setTextColor(textColor);

		/*float textSize = res.getDimension(R.dimen.textsize);
		tv.setTextSize(TypedValue.COMPLEX_UNIT_PX, textSize);*/
	}
}
